package command.garageDoor;import command.Command;import command.garageDoor.GarageDoor;/** * Created by Administrator on 2018-10-24. */public class GarageDoorOpenCommand implements Command {    GarageDoor garageDoor;    public  GarageDoorOpenCommand(GarageDoor garageDoor){       this.garageDoor = garageDoor;    }    public void execute() {       garageDoor.up();    }    public void Undo() {        garageDoor.lightOff();    }}